package com.tech.zhidengxian.model.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tech.zhidengxian.mapper.typehandler.JsonTypeHandler;
import com.tech.zhidengxian.model.constant.District;
import lombok.Data;

@Data
@TableName(value = "zdx_receiver_address",autoResultMap = true)
public class ReceiverAddressDO {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long uid;
    private String name;
    private String phone;
    @TableField(typeHandler = JsonTypeHandler.class)
    private District district;
    private String detailAddress;
    private Boolean isDefault;
}
